package com.soso.confidant.util;

import java.sql.Connection;   
import java.sql.DriverManager;   
import java.sql.SQLException;

public class DB {   
	
	public static Connection getConnection(){
		Connection conn = null;
		try {
		Class.forName("com.mysql.jdbc.Driver");
		String url="jdbc:mysql://127.0.0.1:3306/test?user=soso&password=";
		conn = DriverManager.getConnection(url);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}catch (SQLException e) {
			e.printStackTrace();
		}
		return conn;
	}
	
} 